package com.library.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.library.entity.BorrowRecord;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 借阅记录Mapper
 */
@Mapper
public interface BorrowRecordMapper extends BaseMapper<BorrowRecord> {
    
    /**
     * 分页查询借阅记录（带用户和图书信息）
     */
    Page<BorrowRecord> selectRecordPage(Page<BorrowRecord> page,
                                         @Param("userId") Long userId,
                                         @Param("status") String status);
}

